export function handShare() {
    var _title,
        _source,
        _sourceUrl,
        _width = 600,
        _height = 600,
        _top = _height / 2,
        _left = _width / 2,
        _pic = "";
    var _shareUrl =
        "http://v.t.sina.com.cn/share/share.php?&appkey=4011113707"; //真实的appkey，必选参数
    let loc = document.location;
    _shareUrl += "&url=" + encodeURIComponent(loc); //参数url设置分享的内容链接|默认当前页location，可选参数
    _shareUrl += "&title=" + encodeURIComponent(_title || document.title); //参数title设置分享的标题|默认当前页标题，可选参数
    _shareUrl += "&source=" + encodeURIComponent(_source || "");
    _shareUrl += "&sourceUrl=" + encodeURIComponent(_sourceUrl || "");
    _shareUrl += "&content=" + "utf-8"; //参数content设置页面编码gb2312|utf-8，可选参数
    _shareUrl += "&pic=" + encodeURIComponent(_pic || ""); //参数pic设置图片链接|默认为空，可选参数
    window.open(
        _shareUrl,
        "_blank",
        "width=" +
        _width +
        ",height=" +
        _height +
        ",top=" +
        _top +
        ",left=" +
        _left +
        ",toolbar=no,menubar=no,scrollbars=no, resizable=1,location=no,status=0"
    );
}
